import { GithubOutlined } from '@ant-design/icons';
import { DefaultFooter } from '@ant-design/pro-layout';

const Footer: React.FC = () => {
  const defaultMessage = '阿宣出品';
  const currentYear = new Date().getFullYear();
  return (
    <DefaultFooter
      copyright={`${currentYear} ${defaultMessage}`}
      links={[
        {
          key: 'planet',
          title: '知识星球',
          href: 'https://wx.zsxq.com/dweb2/index/group/51122858222824',
          blankTarget: true,
        },
        {
          key: 'github',
          title:<><GithubOutlined />宣的 github</>,
          href: 'https://gitee.com/',
          blankTarget: true,
        },
        {
          key: 'myBili',
          title: '我的B站',
          href: 'https://www.bilibili.com/',
          blankTarget: true,
        },
      ]}
    />
  );
};

export default Footer;
